package com.iterator.bean.web.wy.admin;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author: Silence_W
 * @date: 2021-01-10 20:51
 **/
@NoArgsConstructor
@AllArgsConstructor
@Data
public class UpdateVO {

    /**
     * id : 23
     * username : 3432423433
     * password : $2a$10$mcXkfMpU.fWnRaB34HHlGupLu7nFffi8UbfIfc2iZl.c6heKQKTCy
     * avatar : '
     * updateTime : 2021-01-10 20:46:42
     * roleIds : [12]
     */

    private int id;
    private String username;
    private String password;
    private String avatar;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private String updateTime;
    private List<Integer> roleIds;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public List<Integer> getRoleIds() {
        return roleIds;
    }

    public void setRoleIds(List<Integer> roleIds) {
        this.roleIds = roleIds;
    }
}
